// 教师类型定义
export interface Teacher {
  id: number;
  name: string;
  teacherId: string; // 工号
  gender: 'male' | 'female';
  subject: string; // 科目
  grade: string; // 教授年级
  position: string; // 职位（教师、班主任、主任等）
  education: string; // 学历
  dateOfBirth: string;
  hireDate: string; // 入职日期
  phoneNumber: string;
  email: string;
  address: string;
  status: 'active' | 'leave' | 'retired'; // 教师状态
  avatar?: string; // 头像URL
  department: string; // 部门/教研组
  salaryLevel?: string; // 薪资等级
  qualifications?: string[]; // 资格证书
}

// 科目选项
export const subjectOptions = [
  { value: 'chinese', label: '语文' },
  { value: 'math', label: '数学' },
  { value: 'english', label: '英语' },
  { value: 'physics', label: '物理' },
  { value: 'chemistry', label: '化学' },
  { value: 'biology', label: '生物' },
  { value: 'history', label: '历史' },
  { value: 'geography', label: '地理' },
  { value: 'politics', label: '政治' },
  { value: 'music', label: '音乐' },
  { value: 'art', label: '美术' },
  { value: 'pe', label: '体育' },
  { value: 'it', label: '信息技术' }
];

// 年级选项 - 从shared/models.ts导入，保持一致性
export { gradeOptions } from '../../shared/models';

// 职位选项
export const positionOptions = [
  { value: 'teacher', label: '教师' },
  { value: 'headteacher', label: '班主任' },
  { value: 'dean', label: '主任' },
  { value: 'vice-principal', label: '副校长' },
  { value: 'principal', label: '校长' }
];

// 学历选项
export const educationOptions = [
  { value: 'bachelor', label: '本科' },
  { value: 'master', label: '硕士' },
  { value: 'doctor', label: '博士' },
  { value: 'college', label: '大专' },
  { value: 'other', label: '其他' }
];

// 教师状态选项
export const statusOptions = [
  { value: 'active', label: '在职' },
  { value: 'leave', label: '请假' },
  { value: 'retired', label: '退休' }
];

// 部门选项
export const departmentOptions = [
  { value: 'chinese', label: '语文组' },
  { value: 'math', label: '数学组' },
  { value: 'english', label: '英语组' },
  { value: 'science', label: '理科组' },
  { value: '数智传媒', label: '数智传媒组' },
  { value: 'pe', label: '体育组' },
  { value: 'administration', label: '行政部门' }
];

// 初始教师数据（用于演示）
export const initialTeachers: Teacher[] = [
  {
    id: 1,
    name: '王明',
    teacherId: 'T2020001',
    gender: 'male',
    subject: 'chinese',
    grade: 'freshman',
    position: 'headteacher',
    education: 'master',
    dateOfBirth: '1985-03-15',
    hireDate: '2020-09-01',
    phoneNumber: '13812345678',
    email: 'wanglaoshi@example.com',
    address: '北京市海淀区',
    status: 'active',
    department: 'chinese',
    salaryLevel: 'level3',
    qualifications: ['高级教师证', '普通话一级甲等']
  },
  {
    id: 2,
    name: '李娜',
    teacherId: 'T2021001',
    gender: 'female',
    subject: 'math',
    grade: 'sophomore',
    position: 'teacher',
    education: 'bachelor',
    dateOfBirth: '1990-08-22',
    hireDate: '2021-09-01',
    phoneNumber: '13712345678',
    email: 'lilaoshi@example.com',
    address: '北京市朝阳区',
    status: 'active',
    department: 'math',
    salaryLevel: 'level2',
    qualifications: ['中级教师证']
  },
  {
    id: 3,
    name: '张伟',
    teacherId: 'T2019001',
    gender: 'male',
    subject: 'english',
    grade: 'junior',
    position: 'headteacher',
    education: 'doctor',
    dateOfBirth: '1980-05-18',
    hireDate: '2019-09-01',
    phoneNumber: '13512345678',
    email: 'zhanglaoshi@example.com',
    address: '北京市东城区',
    status: 'active',
    department: 'english',
    salaryLevel: 'level4',
    qualifications: ['特级教师证', 'TESOL证书']
  },
  {
    id: 4,
    name: '刘芳',
    teacherId: 'T2018001',
    gender: 'female',
    subject: 'physics',
    grade: 'all',
    position: 'dean',
    education: 'master',
    dateOfBirth: '1978-11-05',
    hireDate: '2018-09-01',
    phoneNumber: '13612345678',
    email: 'liulaoshi@example.com',
    address: '北京市西城区',
    status: 'active',
    department: 'science',
    salaryLevel: 'level5',
    qualifications: ['高级教师证', '学科带头人']
  },
  {
    id: 5,
    name: '陈强',
    teacherId: 'T2022001',
    gender: 'male',
    subject: 'pe',
    grade: 'all',
    position: 'teacher',
    education: 'bachelor',
    dateOfBirth: '1995-02-14',
    hireDate: '2022-09-01',
    phoneNumber: '13912345678',
    email: 'chenlaoshi@example.com',
    address: '北京市丰台区',
    status: 'active',
    department: 'pe',
    salaryLevel: 'level1',
    qualifications: ['初级教师证']
  }
];